home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11630 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Why atol( "65536" ) return 0?
  5. Date: 25 Mar 1996 08:02 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <25MAR199608025637@erich.triumf.ca>
  9. References: <315688C2.2C56@blue.nowcom.co.kr>
  10. NNTP-Posting-Host: ftp.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <315688C2.2C56@blue.nowcom.co.kr>, whoever <whatever@blue.nowcom.co.kr> writes...
  14. >why ?_?
  15.  
  16. Did you #include <stdlib.h>
  17.  
  18. If not, the compiler will assume that atol() returns an int.  For MS-DOS
  19. compilers, 65536 won't fit in an int. (16 bits)
  20.  
  21. >mailto:whatever@blue.nowcom.co.kr
  22. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  23. Internet: bennett@triumf.ca         | of one another only when one can be
  24. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  25. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  26. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  27. or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
  28.  
  29.